﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="BattleshipDBDataSet" targetNamespace="http://tempuri.org/BattleshipDBDataSet.xsd" xmlns:mstns="http://tempuri.org/BattleshipDBDataSet.xsd" xmlns="http://tempuri.org/BattleshipDBDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="BattleshipDBConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BattleshipDBConnectionString (MySettings)" PropertyReference="ApplicationSettings.Battleship.My.MySettings.GlobalReference.Default.BattleshipDBConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="BattleshipDBTableAdapter" GeneratorDataComponentClassName="BattleshipDBTableAdapter" Name="BattleshipDB" UserDataComponentName="BattleshipDBTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="BattleshipDBConnectionString (MySettings)" DbObjectName="BattleshipDB" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM `BattleshipDB` WHERE ((`ID` = ?) AND ((? = 1 AND `PlayerName` IS NULL) OR (`PlayerName` = ?)) AND ((? = 1 AND `Wins` IS NULL) OR (`Wins` = ?)) AND ((? = 1 AND `Losses` IS NULL) OR (`Losses` = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_PlayerName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PlayerName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_PlayerName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="PlayerName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Wins" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Wins" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Wins" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Wins" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Losses" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Losses" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Losses" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Losses" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `BattleshipDB` (`PlayerName`, `Wins`, `Losses`) VALUES (?, ?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="PlayerName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="PlayerName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Wins" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Wins" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Losses" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Losses" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, PlayerName, Wins, Losses FROM BattleshipDB</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `BattleshipDB` SET `PlayerName` = ?, `Wins` = ?, `Losses` = ? WHERE ((`ID` = ?) AND ((? = 1 AND `PlayerName` IS NULL) OR (`PlayerName` = ?)) AND ((? = 1 AND `Wins` IS NULL) OR (`Wins` = ?)) AND ((? = 1 AND `Losses` IS NULL) OR (`Losses` = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="PlayerName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="PlayerName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Wins" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Wins" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Losses" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Losses" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_PlayerName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PlayerName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_PlayerName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="PlayerName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Wins" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Wins" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Wins" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Wins" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Losses" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Losses" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Losses" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Losses" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PlayerName" DataSetColumn="PlayerName" />
              <Mapping SourceColumn="Wins" DataSetColumn="Wins" />
              <Mapping SourceColumn="Losses" DataSetColumn="Losses" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="BattleshipDBDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="BattleshipDBDataSet" msprop:Generator_UserDSName="BattleshipDBDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="BattleshipDB" msprop:Generator_TableClassName="BattleshipDBDataTable" msprop:Generator_TableVarName="tableBattleshipDB" msprop:Generator_TablePropName="BattleshipDB" msprop:Generator_RowDeletingName="BattleshipDBRowDeleting" msprop:Generator_UserTableName="BattleshipDB" msprop:Generator_RowChangingName="BattleshipDBRowChanging" msprop:Generator_RowEvHandlerName="BattleshipDBRowChangeEventHandler" msprop:Generator_RowDeletedName="BattleshipDBRowDeleted" msprop:Generator_RowEvArgName="BattleshipDBRowChangeEvent" msprop:Generator_RowChangedName="BattleshipDBRowChanged" msprop:Generator_RowClassName="BattleshipDBRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PlayerName" msprop:Generator_ColumnVarNameInTable="columnPlayerName" msprop:Generator_ColumnPropNameInRow="PlayerName" msprop:Generator_ColumnPropNameInTable="PlayerNameColumn" msprop:Generator_UserColumnName="PlayerName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Wins" msprop:Generator_ColumnVarNameInTable="columnWins" msprop:Generator_ColumnPropNameInRow="Wins" msprop:Generator_ColumnPropNameInTable="WinsColumn" msprop:Generator_UserColumnName="Wins" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Losses" msprop:Generator_ColumnVarNameInTable="columnLosses" msprop:Generator_ColumnPropNameInRow="Losses" msprop:Generator_ColumnPropNameInTable="LossesColumn" msprop:Generator_UserColumnName="Losses" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:BattleshipDB" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>